﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CMP.ERP.DAL;
using CMP.ERP.Model;
using System.Data;

namespace CMP.ERP.BLL
{
   public class WeighBLL
    {
       WeighDAL dal = new WeighDAL();
        /// <summary>
        /// 称重显示
        /// </summary>
        /// <returns></returns>
        public DataTable GetShow()
        {
            return dal.GetShow();
        }
        /// <summary>
        /// 添加称重物品
        /// </summary>
        /// <param name="w"></param>
        /// <returns></returns>
        public int Getadd(int Shipments_Id, int Weigh_money, string Weigh_kilogram, string Weigh_danhao)
        {
            return dal.Getadd(Shipments_Id,Weigh_money,Weigh_kilogram,Weigh_danhao);
        }
        /// <summary>
        /// 根据单号查询
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public DataTable Getchaxun(string danhao)
        {
            return dal.Getchaxun(danhao);
        }
        /// <summary>
        /// 下拉框
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public DataTable Getxiala()
        {
            return dal.Getxiala();
        }
         /// <summary>
      /// 删除
      /// </summary>
      /// <param name="id"></param>
      /// <returns></returns>
      public int Getdelete(int id)
        {
            return dal.Getdelete(id);
        }
    }
}
